package ckw.database.resultPattern;

import java.sql.Timestamp;
import java.util.ArrayList;

public class ElectionResultPattern {
	private String name;
	private Timestamp startDate;
	private Timestamp endDate;
	private int voters = 0;
	private int votes = 0;
	private int properVotes = 0;
	private int afterEndTimeVotes = 0;
	private int nonresidentVoters = 0;
	private int nonresidentVotersWithVote = 0;
	private ArrayList<OKWResultPattern> okws = new ArrayList<>();
	private ArrayList<VotingCardResultPattern> votingCards = new ArrayList<>();
	
	public ElectionResultPattern(String name, Timestamp startDate,
			Timestamp endDate) {
		super();
		this.name = name;
		this.startDate = startDate;
		this.endDate = endDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Timestamp getStartDate() {
		return startDate;
	}

	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	public Timestamp getEndDate() {
		return endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public int getVoters() {
		return voters;
	}

	public void setVoters(int voters) {
		this.voters = voters;
	}

	public int getVotes() {
		return votes;
	}

	public void setVotes(int votes) {
		this.votes = votes;
	}

	public int getProperVotes() {
		return properVotes;
	}

	public void setProperVotes(int properVotes) {
		this.properVotes = properVotes;
	}

	public int getAfterEndTimeVotes() {
		return afterEndTimeVotes;
	}

	public void setAfterEndTimeVotes(int afterEndTimeVotes) {
		this.afterEndTimeVotes = afterEndTimeVotes;
	}

	public int getNonresidentVoters() {
		return nonresidentVoters;
	}

	public void setNonresidentVoters(int nonresidentVoters) {
		this.nonresidentVoters = nonresidentVoters;
	}

	public int getNonresidentVotersWithVote() {
		return nonresidentVotersWithVote;
	}

	public void setNonresidentVotersWithVote(int nonresidentVotersWithVote) {
		this.nonresidentVotersWithVote = nonresidentVotersWithVote;
	}

	public ArrayList<OKWResultPattern> getOkws() {
		return okws;
	}

	public void setOkws(ArrayList<OKWResultPattern> okws) {
		this.okws = okws;
	}

	public ArrayList<VotingCardResultPattern> getVotingCards() {
		return votingCards;
	}

	public void setVotingCards(ArrayList<VotingCardResultPattern> votingCards) {
		this.votingCards = votingCards;
	}
	
	public String toHTML() {
		return name;
		
	}
}
